/*
 * @Author: Leo.wang wanglizhigs@163.com
 * @Date: 2024-09-05 22:46:00
 * @LastEditors: Leo.wang wanglizhigs@163.com
 * @LastEditTime: 2024-09-05 22:48:40
 * @FilePath: /metaverse-manage-ruoyi-ui/src/api/model.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询参数列表
export function getModelList() {
  return request({
    url: '/model',
    method: 'get',
  })
}

export function getModel(id) {
  return request({
    url: `/model/${id}`,
    method: 'get',
  })
}


export function createModel(data) {
  return request({
    url: '/model',
    method: 'post',
    data
  })
}


export function modifyModel(id, data) {
  return request({
    url: `/model/${id}`,
    method: 'put',
    data
  })
}


export function removeModel(id) {
  return request({
    url: `/model/${id}`,
    method: 'delete',
  })
}

